package com.china.school;
import com.china.school.pojo.User;
import org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class XmlAopTest {
    public static void main(String[] args) throws Exception {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("XmlAopTest.xml");
        User user = ctx.getBean(User.class);
         user.eat();
//         user.eatError();
//        AspectJAwareAdvisorAutoProxyCreator

    }
}
